<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // let name = '小明'
    // let age = 17
    // console.log({ name, age })

    function fn(a, b, ...c) {
      console.log(a, b, c)
    }
    fn('a', 'b', 'c', 'd', 'e', 'f')
    let fn1 = (name, age, ...param) => {
      console.log(name, age, param)
    }
    fn1('小明', '十八')
  </script>
</body>

</html>